
function clearValue(thefield){
   thefield.value = ""
} 

function editzip(thisfield){
   $("#postresult").hide("normal");
   $("#Postcode").show("normal");
}

function show(id) {
	var e = document.getElementById(id);
		e.style.display = 'inline';
}

function hide(id) {
	var e = document.getElementById(id);
		e.style.display = 'none';
}

function HideShow(obj) {
	var e = document.getElementById(obj);
	if(e.style.display == 'none')
		e.style.display = 'inline';
	else 
		e.style.display = 'none';
}

function ShowHide(obj) {
	var el = document.getElementById(obj);
	   el.style.display = (el.style.display != 'inline' ? 'inline' : 'none' );
}


function externalLinks() {
   if (!document.getElementsByTagName) return;
   var anchors = document.getElementsByTagName("a");
   for (var i=0; i<anchors.length; i++) {
      var anchor = anchors[i];
      if (anchor.getAttribute("href") && anchor.getAttribute("rel") == "external")
         anchor.target = "_blank";
   }
}

function ShowHidePassword(id) {
   var e = document.getElementById(id);
   if(e.type == 'password')
      e.type = 'text';
   else
      e.type = 'password';
}
